<template>
  <div id="app" class="app-container">
    <!-- Header -->
      <mt-header fixed title="固定在顶部"></mt-header>
      <!-- 中间的路由router区域 -->
      <transition name="ct">
      <router-view></router-view>
      </transition>
      
      <!-- 底部 Tabbar-->
      <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-itemllb mui-active" to="/home">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-itemllb" to="/member">
				<span class="mui-icon mui-icon-email"></span>
				<span class="mui-tab-label">消息</span>
			</router-link>
			<router-link class="mui-tab-itemllb" to="/shopcar">
				<span class="mui-icon mui-icon-extra mui-icon-extra-cart"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-itemllb" to="/search">
				<span class="mui-icon mui-icon-gear"></span>
				<span class="mui-tab-label">设置</span>
			</router-link>
		</nav>

  </div>
</template>

<script>


export default {
  
}
</script>

<style>
  .app-container{
    padding-top:40px;
    padding-bottom:50px ;
    overflow-X: hidden;
  }
  .ct-enter{
    transform: translateX(100%);
    opacity: 0;
  }
   .ct-leave-to{
     transform: translateX(-100%);
     opacity: 0;
     position: absolute;
   }
  .ct-enter-active,
  .ct-leave-active{
    transition: all .8s ease;
  }


/* 更改mui-tab-itemllb 的属性值 因为在滑动栏的时候不能用于切换底部 */
.mui-bar-tab .mui-tab-itemllb.mui-active {
    color: #007aff;
}
.mui-bar-tab .mui-tab-itemllb {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
}
.mui-bar-tab .mui-tab-itemllb .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
}
.mui-bar-tab .mui-tab-itemllb .mui-icon~.mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>
